package com.hnhcyy.b2b.receiver.util;

public class CommonUtil {

	/**
	 * 转成标准时间格式
	 * @author sheyongjun
	 * @date 2019年3月2日
	 */
	public static String covertTime(String time){
		try {
			String year = time.substring(0, 4);
			String month = time.substring(4, 6);
			String day = time.substring(6, 8);
			String hour = time.substring(8, 10);
			String min = time.substring(10, 12);
			String sec = time.substring(12, 14);
			return year + "-" + month + "-" + day + " " + hour + ":" + min + ":" + sec;
		} catch (Exception e) {
			e.printStackTrace();
			return "";
		}
	}
}
